package com.itheima.service;

import com.github.pagehelper.PageInfo;
import com.itheima.domain.Permission;
import com.itheima.domain.UserInfo;

import java.util.List;

public interface UserService {
    List<UserInfo> findAll();

    UserInfo findById(String id);

    void save(UserInfo userInfo);

    /* void update(UserInfo userInfo);*/

    PageInfo<UserInfo> findAll(int page, int size,String username);

    void deleteAll(String[] ids);

    void updateStatus(String id);

    void updateRole(String userId, String[] roleIds);

    UserInfo login(String username, String password);

    List<Permission> findPermissionByUserId(String id);
}
